07. JAR and Static Analysis
Section 6: Build the Application into an Executable JAR
Update your pom.xml
to use a maven plugin that allows you to compile your application into an executable JAR. Confirm that you can run the program by running the jar file. Execute the Maven goal that builds the JAR and start the application from the command line.
Submit a screenshot titled executable_jar.png
that shows you running the executable jar from the command line and the application launching. Use the command java -jar [yourjarname]
to run it.
Section 7: Add Static Analysis to Build
Add a Reporting tag to your pom that contains the spotbugs-maven-plugin
and use it to generate a spotbugs.html
report in your project’s /target/site
directory.
You should fix any of the errors it finds that are High priority. You are welcome, though not required, to address any other errors you find as well!